import http from "../request.js";
let url = "/admin/lutuofficialNewsInformation/";
// 列表
export function newsInfomationList(data) {
  return http.request({
    url: url + "newsInfomationList",
    params: data,
  });
}
// 新增
export function addNewsInfomation(data) {
  return http.request({
    url: url + "addNewsInfomation",
    data,
    method: "post",
  });
}
// 删
export function deleteNewsInfomation(data) {
  return http.request({
    url: url + "deleteNewsInfomation",
    data,
    method: "post",
  });
}
// 推荐开关
export function newsInfomationOpenRecommend(data) {
  return http.request({
    url: url + "newsInfomationOpenRecommend",
    params: data,
  });
}

// 详情
export function newsInfomationDetail(data) {
  return http.request({
    url: url + "newsInfomationDetail",
    params: data,
  });
}

// 首页推荐保存
export function newsInfomationOpenRecommendSave(data) {
  return http.request({
    url: url + "newsInfomationOpenRecommendSave",
    data,
    method: "post",
  });
}
